<template>
  <div class="bg-[#232324] h-[100%]" v-loading="loading">
    <el-form label-width="auto" :model="states" size="small">
      <el-form-item label="标题文字">
        <el-input v-model="states.title" />
      </el-form-item>
      <el-form-item label="是否显示时间筛选">
        <el-switch v-model="states.show" />
      </el-form-item>
    </el-form>
  </div>
</template>

<script setup>
import { computed, onMounted, ref } from "vue";
const loading = ref(true);
const activeNames = ref();
const props = defineProps({
  models: {
    type: Object,
    default: () => ({}),
  },
});
const emit = defineEmits(["update:models", "edit"]);

onMounted(() => {
  setTimeout(() => {
    loading.value = false;
  }, 200);
});

const states = computed({
  get: () => props.models,
  set: () => emit("update:models"),
});
const clicks = () => {
  emit("edit", "edit_");
};
</script>

<style scoped lang="scss">
:deep(.el-collapse-item__header) {
  padding-left: 10px !important;
}
</style>
